package com.jiandaoshou.utils;

import android.app.Application;
import android.content.Context;
import android.widget.Toast;

/**
 * Created by Administrator on 2016/10/17.
 */

public class ToastUtil {

    private static Application applicationContext;
    public static final void init(Application context){
        applicationContext = context;
    }
    public static final void toast(String  msg){
        if(applicationContext == null) return;
         Toast.makeText(applicationContext, msg, Toast.LENGTH_SHORT).show();
    }
}
